<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>
<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <input id="advancedStatus" type="hidden" name="advancedStatus" value="${page.advancedStatus}" />
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label id="personnelType"><@label key="personnelCode.C,colon">人员编号：</@label></label> 
                    <input type="text" name="personnelCode" value="${page.personnelCode!''}"/>
                </li>
                <li class="notnormal">
                    <label><@label key="workCenter.C,colon">工作中心：</@label></label> 
                    <input id="workCenterGrp.workCenterCode" name="workCenterCode" type="text"  suggestFields="workCenterCode,workCenterText" postField="workCenterCode" 
                    suggestUrl="${rc.getContextPath()}/manage/workCenter/workCenterSuggest?hr=hr" lookupGroup="workCenterGrp" autocomplete="off"  value="${page.workCenterCode!''}"/>
                </li>
                <li>
                    <label><@label key="materialCode.C,colon">物料编号：</@label></label> 
                    <input id="materialLookup.materialCode" name="materialCode" type="text" postField="materialCode" suggestFields="materialCode,materialText" 
                        suggestUrl="${rc.getContextPath()}/manage/material/componentSuggest" lookupGroup="materialLookup" 
                        value="${page.materialCode!''}"/>
                </li>
            </ul>
            <ul class="searchContent">
                <li>
                    <label>
                        <@label key='date.C,colon'>日期从：</@label>
                    </label>
                    <input type="text" class="date" readonly="readonly" size="17" max_Date="{maxCreateDateTime}"  
                    name="minCreateDateTime" value="${page.minCreateDateTime!''}" />
                    <a class="inputDateButton" href="javascript:;">选择</a>
                </li>
                <li>
                    <label>
                        <@label key="to.C,colon">到：</@label>
                    </label>
                    <input type="text" class="date" readonly="readonly" size="17" min_Date="{minCreateDateTime}" 
                    name="maxCreateDateTime" value="${page.maxCreateDateTime!''}" />
                    <a class="inputDateButton" href="javascript:;">选择</a>
                </li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">
                                <@label key='query.B'>查询</@label>
                            </button>
                        </div>
                    </div>
                </li>
                <li class="advancedQuery" >            
                    <a id="advancedQuery"href="javascript:void(0);"   onclick="openAdvanced(navTab.getCurrentPanel())">
                        <@label key="advancedQuery.C">高级查询</@label>
                    </a>
                    <span  onclick="openAdvanced(navTab.getCurrentPanel());"></span>            
                </li>
            </ul>
        </div>
    </div>
    <div id="collapsablePanel" class="pageHeader" style="display:none;" >
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label><@label key="shiftingWorkCenter.C,colon">工作中心：</@label></label> 
                    <input id="shiftingWorkCenterGrp.workCenterCode" name="shiftingWorkCenterCode" type="text"  suggestFields="workCenterCode,workCenterText" postField="workCenterCode" 
                suggestUrl="${rc.getContextPath()}/manage/workCenter/workCenterSuggest?hr=hr" lookupGroup="shiftingWorkCenterGrp" autocomplete="off"  value="${page.shiftingWorkCenterCode!''}"/>
                </li>
                <li>
                    <label><@label key="personnelName.C,colon">姓名：</@label></label> 
                    <input type="text" name="personnelName" value="${page.personnelName!''}"/>
                </li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="excel_export" labelKey="add.B" defalutName="导出excel">
            <li>
                <a class="export" target="multiExport" tableId="iTable" targetType="navTab" title="<@label key='confirmexportToExcel.M'>确定要导出这些记录吗?</@label>"
                 href="${rc.getContextPath()}/manage/hr_productionPerformance/exportDateReport?navTabId=${navTabId!''}" 
                 ><span><@label key='exportToExcel.D'>导出EXCEL</@label></span> </a>
            </li> 
            </@buttonRight> 
        </ul>
    </div>
    <table class="table" id="iTable" width="100%" layoutH="164">
        <thead>
            <tr>
                <th width="27"><@label key="serialNumber.C">序号</@label></th>
                <th width="100" field="theDate" orderField="theDate"<#if (page.orderField?? && page.orderField == 'theDate')>class="${page.orderDirection!''}"</#if>><@label key="date.C">日期</@label></th>
                <th width="100" field="personnelCode" orderField="personnelCode"<#if (page.orderField?? && page.orderField == 'personnelCode')>class="${page.orderDirection!''}"</#if>><@label key="personnelCode.C">人员编号</@label></th>
                <th width="100" field="personnelName" <#if (page.orderField?? && page.orderField == 'personnelName')>class="${page.orderDirection!''}"</#if>><@label key="personnelName.C">姓名</@label></th>
                <th width="100" field="workCenterText" <#if (page.orderField?? && page.orderField == 'workCenterText')>class="${page.orderDirection!''}"</#if>><@label key="workCenter.C">工作中心</@label></th>
                <th width="100" field="shiftingWorkCenterText" <#if (page.orderField?? && page.orderField == 'shiftingWorkCenterText')>class="${page.orderDirection!''}"</#if>><@label key="shiftingWorkCenter.C">实际工作中心</@label></th>
                <th width="100" field="materialCode" <#if (page.orderField?? && page.orderField == 'materialCode')>class="${page.orderDirection!''}"</#if>><@label key="materialCode.C">物料编号</@label></th>
                <th width="100" field="materialText" <#if (page.orderField?? && page.orderField == 'materialText')>class="${page.orderDirection!''}"</#if>><@label key="materialText.C">物料描述</@label></th>
                <th width="100" field="quantity" <#if (page.orderField?? && page.orderField == 'quantity')>class="${page.orderDirection!''}"</#if>><@label key="output.C">产量</@label></th>
                <th width="100" field="workHours" <#if (page.orderField?? && page.orderField == 'workHours')>class="${page.orderDirection!''}"</#if>><@label key="workHours.C">工时(小时)</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as performance>
            <tr target="performance" rel="${performance.id!''}">
                <td>${page.startRow + performance_index}</td>
                <td>${(performance.theDate?string("yyyy-MM-dd"))?if_exists}</td>
                <td>${performance.personnelCode!''}</td>
                <td>${performance.personnelName!''}</td>
                <td>${performance.workcenterText!''}</td>
                <td>${performance.shiftingWorkcenterText!''}</td>
                <td>${performance.materialCode!''}</td>
                <td>${performance.materialText!''}</td>
                <td>${performance.quantity!''}</td>
                <td>${performance.workHours!''}</td>
            </tr>
            </#list> <#else>
            <tr target="performance_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="performance_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>
<script type="text/javascript">
$(function(){
    initAdvancedQuery(DWZ.context());
});
</script>
